import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthGuardGuard } from 'src/app/guards/auth-guard.guard';
import { BaseFormComponent } from './base-form.component';

const routes: Routes = [
  { path: 'base-form', component: BaseFormComponent, canActivate: [ AuthGuardGuard ], canDeactivate: [ AuthGuardGuard ] },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class DynamicRoutingModule { }
